import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';


// 覆盖底部tabbar
class MYHomeAppBar extends AppBar {

  MYHomeAppBar(BuildContext context): super(
      title: Text("美食广场"),
      leading: IconButton(
        icon: Icon(Icons.settings),
        onPressed: () {
          Scaffold.of(context).openDrawer();
        }
      ),
  );
}


/* 不覆盖底部tabbar
class MYHomeAppBar extends AppBar {

  MYHomeAppBar(BuildContext context): super(
      title: Text("美食广场"),
      leading: Builder(
        builder: (context) {
          return IconButton(
            icon: Icon(Icons.settings),
            onPressed: () {
              Scaffold.of(context).openDrawer();
            },
          );
        },
      )
  );
}

 */
